import request from '@/utils/request';
import { other } from './prefix';

const aboutVideoManage = {
  // 查询文章列表
  getVideo(params) {
    return request.get(other + '/about_video', { params });
  },
  // 创建文章
  setVideo(params) {
    return request.post(other + '/about_video', params);
  },
  uploadVideo(id, params) {
    return request.post(other + '/about_video/' + id + '?op=upload_file&name=video_url', params);
  },
  // 删除文章
  delVideo(id) {
    return request.delete(other + '/about_video/' + id);
  },
};

export default aboutVideoManage;
